class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}
		// set controller default
		"/" {
			controller = "login"
		}
		// set view default of controller a blove
		/*"/"(view:"home/index")*/
		"500"(view:'/error')
	}
}
